<?php

m2import("phpinchains/util/db/DbEntityBase.php");

class SimpleViewerGalleryEntity extends phpinchains_util_db_DbEntityBase {

    function SimpleViewerGalleryEntity($actionform, phpinchains_util_db_Preprocessor $preprocessor = null, phpinchains_util_db_Postprocessor $postprocessor = null)
    {
        $af = new phpinchains_ActionForm();
        $this->table = base_ApplicationContext::getInstance()->getAccessFactory()->getConnection()->getTableprefix()."_simpleViewerGallery";
        $this->fields = array(
            array('id', 'int'),
            array('svgtitle', 'string'),
            array('svgdescription', 'string'),
            array('svgthumb_h', 'int'),
            array('svgthumb_w', 'int'),
            array('svgdetail_h', 'int'),
            array('svgdetail_w', 'int')
        );
        $this->defaultvalues = array (
        );
        $this->index = array (
        );
        $this->blobs = array (
        );
        $this->foreignKeys = array(

        );
        
        parent::phpinchains_util_db_DbEntityBase($af, $preprocessor, $postprocessor);
    }

    function delete ($pk, $showquery = false) {
        m2import('model/entity/SimpleViewerGalleryImageEntity.php');
        $entity = new SimpleViewerGalleryImageEntity($actionform);
        $entity->deleteByField('simpleViewerGallery_id', $pk);
        parent::delete($pk, $showquery);
    }

}


?>